package io.renren.modules.sys.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.common.validator.ValidatorUtils;
import io.renren.modules.sys.entity.UnitEntity;
import io.renren.modules.sys.service.UnitService;
import io.renren.modules.sys.service.UserBusinessService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;



@RestController
@RequestMapping("sys/userBusiness")
public class UserBusinessController {
    @Autowired
    private UserBusinessService userBusinessService;

    /**
     * 列表
     */
    @RequestMapping("/getBasicData")
    public R getBasicData(@RequestParam Map<String, Object> params){
        List list = userBusinessService.selectByMap(params);

        return R.ok().put("total", list.size()).put("rows",list);
    }




}
